
<?php
// try{
	header("Content-Type: text/html;charset=utf-8");
	$pdo = new PDO('mysql:host=localhost; dbname=php_lyglxt', 'root', 'root');
	$sql = "insert into member(user_name, user_tel, user_time, user_text) values(?,?,?,?)";
	$time = time();


	$stmt = $pdo->prepare($sql);//预处理
	$stmt->bindParam(1, $user_name);
	$stmt->bindParam(2, $user_tel);
	$stmt->bindParam(3, $user_time);
	$stmt->bindParam(4, $user_text);
	$user_name = $_POST['user_name'];
	$user_tel  = $_POST['user_tel'];
	$user_time = $time;
	$user_text = $_POST['user_text'];
	$stmt -> execute();//执行



// }catch(PDOException $e){
// 	echo $e->getMessage();
// }
?>
<p align="center"><a href="./show.php">查看留言内容</a></p>